<% layout('/layouts/default.html', {title: '全省主要经济指标快报表查询', libs: ['dataGrid']}){ %>
<div class="main-content">
    <div class="box box-main">
        <div class="box-header">
            <#form:form id="searchForm" model="${dcProvinceMajor}" action="${ctx}/home/provinceMajor/listData" method="post" class="form-inline"
            data-page-no="${parameter.pageNo}" data-page-size="${parameter.pageSize}" data-order-by="${parameter.orderBy}">
            <div style="float: right">
                <div class="form-group">
                    <label class="control-label">${text('编印日期')}：</label>
                    <div class="control-inline">
<!--                        <#form:input path="publishYearMonth" maxlength="50" class="form-control width-120"/>-->
                        <#form:input path="publishYearMonth" readonly="true" maxlength="20" class="form-control "/>
                    </div>
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-primary btn-sm">${text('查询')}</button>
                    <button id="btnImport" class="btn btn-default btn-sm">${text('导入')}</button>
                </div>
            </div>
            </#form:form>
        </div>
        <div class="box-body">
            <table id="dataGrid"></table>
        </div>
        <div class="mainPage" style="margin-top:10px;margin-left: 10px">
            <div id="pageNum"></div>
        </div>
    </div>
</div>
<% } %>
<style>
    .layui-laypage .layui-laypage-curr .layui-laypage-em {
        position: absolute;
        left: -1px;
        top: -1px;
        padding: 1px;
        width: 100%;
        height: 100%;
        background-color: #37f!important;
    }
    .layui-laypage a:hover {
        color: #409eff !important;
    }
</style>
<link rel="stylesheet" href="${ctxStatic}/m/css/layui.css">
<script src="${ctxStatic}/m/js/layui.js?${_version}"></script>
<script>
    // 初始化DataGrid对象
    var columnModel1 =[{header:'${text("城市")}', name:'cityName', index:'a.city_name', width:150, align:"left"},
        {header:'${text("绝对数")}', name:'gdpValue1', index:'a.gdp_value1', width:150, align:"center"},
        {header:'${text("占全省%")}', name:'gdpValue2', index:'a.gdp_value2', width:150, align:"center"},
        {header:'${text("位次")}', name:'gdpValue3', index:'a.gdp_value3', width:150, align:"center"},
        {header:'${text("增长%")}', name:'gdpValue4', index:'a.gdp_value4', width:150, align:"center"},
        {header:'${text("位次")}', name:'gdpValue5', index:'a.gdp_value5', width:150, align:"center"},
        {header:'${text("绝对数")}', name:'primaryIndustryValue1', index:'a.primary_industry_value1', width:150, align:"center"},
        {header:'${text("占全省%")}', name:'primaryIndustryValue2', index:'a.primary_industry_value2', width:150, align:"center"},
        {header:'${text("位次")}', name:'primaryIndustryValue3', index:'a.primary_industry_value3', width:150, align:"center"},
        {header:'${text("增长%")}', name:'primaryIndustryValue4', index:'a.primary_industry_value4', width:150, align:"center"},
        {header:'${text("位次")}', name:'primaryIndustryValue5', index:'a.primary_industry_value5', width:150, align:"center"}]
    var columnModel2 =[
        {header:'${text("城市")}', name:'cityName', index:'a.city_name', width:150, align:"left"},
        {header:'${text("绝对数")}', name:'secondaryIndustryValue1', index:'a.secondary_industry_value1', width:150, align:"center"},
        {header:'${text("占全省%")}', name:'secondaryIndustryValue2', index:'a.secondary_industry_value2', width:150, align:"center"},
        {header:'${text("位次")}', name:'secondaryIndustryValue3', index:'a.secondary_industry_value3', width:150, align:"center"},
        {header:'${text("增长%")}', name:'secondaryIndustryValue4', index:'a.secondary_industry_value4', width:150, align:"center"},
        {header:'${text("位次")}', name:'secondaryIndustryValue5', index:'a.secondary_industry_value5', width:150, align:"center"},
        {header:'${text("绝对数")}', name:'tertiaryIndustryValue1', index:'a.tertiary_industry_value1', width:150, align:"center"},
        {header:'${text("占全省%")}', name:'tertiaryIndustryValue2', index:'a.tertiary_industry_value2', width:150, align:"center"},
        {header:'${text("位次")}', name:'tertiaryIndustryValue3', index:'a.tertiary_industry_value3', width:150, align:"center"},
        {header:'${text("增长%")}', name:'tertiaryIndustryValue4', index:'a.tertiary_industry_value4', width:150, align:"center"},
        {header:'${text("位次")}', name:'tertiaryIndustryValue5', index:'a.tertiary_industry_value5', width:150, align:"center"}
      ]
    var columnModel3 =[
        {header:'${text("城市")}', name:'cityName', index:'a.city_name', width:150, align:"left"},
        {header:'${text("比重")}', name:'primaryIndustryWeight', index:'a.primary_industry_weight', width:150, align:"center"},
        {header:'${text("位次")}', name:'primaryIndustryRank', index:'a.primary_industry_rank', width:150, align:"center"},
        {header:'${text("比重")}', name:'secondaryIndustryWeight', index:'a.secondary_industry_weight', width:150, align:"center"},
        {header:'${text("位次")}', name:'secondaryIndustryRank', index:'a.secondary_industry_rank', width:150, align:"center"},
        {header:'${text("比重")}', name:'tertiaryIndustryWeight', index:'a.tertiary_industry_weight', width:150, align:"center"},
        {header:'${text("位次")}', name:'tertiaryIndustryRank', index:'a.tertiary_industry_rank', width:150, align:"center"},
        {header:'${text("增长%")}', name:'aboveScaleIndustryIncreaseValue1', index:'a.above_scale_industry_increase_value1', width:150, align:"center"},
        {header:'${text("位次")}', name:'aboveScaleIndustryIncreaseValue2', index:'a.above_scale_industry_increase_value2', width:150, align:"center"},
        {header:'${text("增长%")}', name:'strategicEmergingIndustriesValue1', index:'a.strategic_emerging_industries_value1', width:150, align:"center"},
        {header:'${text("位次")}', name:'strategicEmergingIndustriesValue2', index:'a.strategic_emerging_industries_value2', width:150, align:"center"}
    ]
    var columnModel4 =[
        {header:'${text("城市")}', name:'cityName', index:'a.city_name', width:150, align:"left"},
        {header:'${text("增长%")}', name:'highTechIndustryValue1', index:'a.high_tech_industry_value1', width:150, align:"center"},
        {header:'${text("位次")}', name:'highTechIndustryValue2', index:'a.high_tech_industry_value2', width:150, align:"center"},
        {header:'${text("增长%")}', name:'fixedAssetsInvestValue1', index:'a.fixed_assets_invest_value1', width:150, align:"center"},
        {header:'${text("位次")}', name:'fixedAssetsInvestValue2', index:'a.fixed_assets_invest_value2', width:150, align:"center"},
        {header:'${text("增长%")}', name:'techUpgradeInvestValue1', index:'a.tech_upgrade_invest_value1', width:150, align:"center"},
        {header:'${text("位次")}', name:'techUpgradeInvestValue2', index:'a.tech_upgrade_invest_value2', width:150, align:"center"},
        {header:'${text("增长%")}', name:'realEstateInvestValue1', index:'a.real_estate_invest_value1', width:150, align:"center"},
        {header:'${text("位次")}', name:'realEstateInvestValue2', index:'a.real_estate_invest_value2', width:150, align:"center"},
        {header:'${text("增长%")}', name:'privateInvestValue1', index:'a.private_invest_value1', width:150, align:"center"},
        {header:'${text("位次")}', name:'privateInvestValue2', index:'a.private_invest_value2', width:150, align:"center"},]
    var columnModel5 =[
        {header:'${text("城市")}', name:'cityName', index:'a.city_name', width:150, align:"left"},
        {header:'${text("绝对数")}', name:'wholeSocietyConsumerGoodsValue1', index:'a.whole_society_consumer_goods_value1', width:150, align:"center"},
        {header:'${text("占全省%")}', name:'wholeSocietyConsumerGoodsValue2', index:'a.whole_society_consumer_goods_value2', width:150, align:"center"},
        {header:'${text("位次")}', name:'wholeSocietyConsumerGoodsValue3', index:'a.whole_society_consumer_goods_value3', width:150, align:"center"},
        {header:'${text("增长%")}', name:'wholeSocietyConsumerGoodsValue4', index:'a.whole_society_consumer_goods_value4', width:150, align:"center"},
        {header:'${text("位次")}', name:'wholeSocietyConsumerGoodsValue5', index:'a.whole_society_consumer_goods_value5', width:150, align:"center"},
        {header:'${text("绝对数")}', name:'generalPublicBudgetRevenueValue1', index:'a.general_public_budget_revenue_value1', width:150, align:"center"},
        {header:'${text("占全省%")}', name:'generalPublicBudgetRevenueValue2', index:'a.general_public_budget_revenue_value2', width:150, align:"center"},
        {header:'${text("位次")}', name:'generalPublicBudgetRevenueValue3', index:'a.general_public_budget_revenue_value3', width:150, align:"center"},
        {header:'${text("增长%")}', name:'generalPublicBudgetRevenueValue4', index:'a.general_public_budget_revenue_value4', width:150, align:"center"},
        {header:'${text("位次")}', name:'generalPublicBudgetRevenueValue5', index:'a.general_public_budget_revenue_value5', width:150, align:"center"}]
    var columnModel6 =[
        {header:'${text("城市")}', name:'cityName', index:'a.city_name', width:150, align:"left"},
        {header:'${text("绝对数")}', name:'financialInstitutionsRmbDepositsValue1', index:'a.financial_institutions_rmb_deposits_value1', width:150, align:"center"},
        {header:'${text("占全省%")}', name:'financialInstitutionsRmbDepositsValue2', index:'a.financial_institutions_rmb_deposits_value2', width:150, align:"center"},
        {header:'${text("位次")}', name:'financialInstitutionsRmbDepositsValue3', index:'a.financial_institutions_rmb_deposits_value3', width:150, align:"center"},
        {header:'${text("增长%")}', name:'financialInstitutionsRmbDepositsValue4', index:'a.financial_institutions_rmb_deposits_value4', width:150, align:"center"},
        {header:'${text("位次")}', name:'financialInstitutionsRmbDepositsValue5', index:'a.financial_institutions_rmb_deposits_value5', width:150, align:"center"},
        {header:'${text("绝对数")}', name:'financialInstitutionsRmbLoansValue1', index:'a.financial_institutions_rmb_loans_value1', width:150, align:"center"},
        {header:'${text("占全省%")}', name:'financialInstitutionsRmbLoansValue2', index:'a.financial_institutions_rmb_loans_value2', width:150, align:"center"},
        {header:'${text("位次")}', name:'financialInstitutionsRmbLoansValue3', index:'a.financial_institutions_rmb_loans_value3', width:150, align:"center"},
        {header:'${text("增长%")}', name:'financialInstitutionsRmbLoansValue4', index:'a.financial_institutions_rmb_loans_value4', width:150, align:"center"},
        {header:'${text("位次")}', name:'financialInstitutionsRmbLoansValue5', index:'a.financial_institutions_rmb_loans_value5', width:150, align:"center"},]
    var columnModel7 =[
        {header:'${text("城市")}', name:'cityName', index:'a.city_name', width:150, align:"left"},
        {header:'${text("绝对数")}', name:'commercialHouseSaleAreaValue1', index:'a.commercial_house_sale_area_value1', width:150, align:"center"},
        {header:'${text("占全省%")}', name:'commercialHouseSaleAreaValue2', index:'a.commercial_house_sale_area_value2', width:150, align:"center"},
        {header:'${text("位次")}', name:'commercialHouseSaleAreaValue3', index:'a.commercial_house_sale_area_value3', width:150, align:"center"},
        {header:'${text("增长%")}', name:'commercialHouseSaleAreaValue4', index:'a.commercial_house_sale_area_value4', width:150, align:"center"},
        {header:'${text("位次")}', name:'commercialHouseSaleAreaValue5', index:'a.commercial_house_sale_area_value5', width:150, align:"center"},
        {header:'${text("绝对数")}', name:'buildingIndustryTotalOutputValue1', index:'a.building_industry_total_output_value1', width:150, align:"center"},
        {header:'${text("占全省%")}', name:'buildingIndustryTotalOutputValue2', index:'a.building_industry_total_output_value2', width:150, align:"center"},
        {header:'${text("位次")}', name:'buildingIndustryTotalOutputValue3', index:'a.building_industry_total_output_value3', width:150, align:"center"},
        {header:'${text("增长%")}', name:'buildingIndustryTotalOutputValue4', index:'a.building_industry_total_output_value4', width:150, align:"center"},
        {header:'${text("位次")}', name:'buildingIndustryTotalOutputValue5', index:'a.building_industry_total_output_value5', width:150, align:"center"},]
    var columnModel8 =[
        {header:'${text("城市")}', name:'cityName', index:'a.city_name', width:150, align:"left"},
        {header:'${text("绝对数")}', name:'totalElectricityConsumptionValue1', index:'a.total_electricity_consumption_value1', width:150, align:"center"},
        {header:'${text("占全省%")}', name:'totalElectricityConsumptionValue2', index:'a.total_electricity_consumption_value2', width:150, align:"center"},
        {header:'${text("位次")}', name:'totalElectricityConsumptionValue3', index:'a.total_electricity_consumption_value3', width:150, align:"center"},
        {header:'${text("增长%")}', name:'totalElectricityConsumptionValue4', index:'a.total_electricity_consumption_value4', width:150, align:"center"},
        {header:'${text("位次")}', name:'totalElectricityConsumptionValue5', index:'a.total_electricity_consumption_value5', width:150, align:"center"},
        {header:'${text("#绝对数")}', name:'industrialPowerConsumptionValue1', index:'a.industrial_power_consumption_value1', width:150, align:"center"},
        {header:'${text("#占全省%")}', name:'industrialPowerConsumptionValue2', index:'a.industrial_power_consumption_value2', width:150, align:"center"},
        {header:'${text("#位次")}', name:'industrialPowerConsumptionValue3', index:'a.industrial_power_consumption_value3', width:150, align:"center"},
        {header:'${text("#增长%")}', name:'industrialPowerConsumptionValue4', index:'a.industrial_power_consumption_value4', width:150, align:"center"},
        {header:'${text("#位次")}', name:'industrialPowerConsumptionValue5', index:'a.industrial_power_consumption_value5', width:150, align:"center"},]
    var columnModel9=[
        {header:'${text("城市")}', name:'cityName', index:'a.city_name', width:150, align:"left"},
        {header:'${text("绝对数")}', name:'totalExportImportVolumeValue1', index:'a.total_export_import_volume_value1', width:150, align:"center"},
        {header:'${text("占全省%")}', name:'totalExportImportVolumeValue2', index:'a.total_export_import_volume_value2', width:150, align:"center"},
        {header:'${text("位次")}', name:'totalExportImportVolumeValue3', index:'a.total_export_import_volume_value3', width:150, align:"center"},
        {header:'${text("增长%")}', name:'totalExportImportVolumeValue4', index:'a.total_export_import_volume_value4', width:150, align:"center"},
        {header:'${text("位次")}', name:'totalExportImportVolumeValue5', index:'a.total_export_import_volume_value5', width:150, align:"center"},
        {header:'${text("绝对数")}', name:'perCapitaDisposableIncomeValue1', index:'a.per_capita_disposable_income_value1', width:150, align:"center"},
        {header:'${text("位次")}', name:'perCapitaDisposableIncomeValue2', index:'a.per_capita_disposable_income_value2', width:150, align:"center"},
        {header:'${text("高于全省")}', name:'perCapitaDisposableIncomeValue3', index:'a.per_capita_disposable_income_value3', width:150, align:"center"},
        {header:'${text("增长%")}', name:'perCapitaDisposableIncomeValue4', index:'a.per_capita_disposable_income_value4', width:150, align:"center"},
        {header:'${text("位次")}', name:'perCapitaDisposableIncomeValue5', index:'a.per_capita_disposable_income_value5', width:150, align:"center"},]
    var columnModel10=[
        {header:'${text("城市")}', name:'cityName', index:'a.city_name', width:150, align:"left"},
        {header:'${text("绝对数")}', name:'urbanPerCapitaDisposableIncomeValue1', index:'a.urban_per_capita_disposable_income_value1', width:150, align:"center"},
        {header:'${text("位次")}', name:'urbanPerCapitaDisposableIncomeValue2', index:'a.urban_per_capita_disposable_income_value2', width:150, align:"center"},
        {header:'${text("高于全省")}', name:'urbanPerCapitaDisposableIncomeValue3', index:'a.urban_per_capita_disposable_income_value3', width:150, align:"center"},
        {header:'${text("增长%")}', name:'urbanPerCapitaDisposableIncomeValue4', index:'a.urban_per_capita_disposable_income_value4', width:150, align:"center"},
        {header:'${text("位次")}', name:'urbanPerCapitaDisposableIncomeValue5', index:'a.urban_per_capita_disposable_income_value5', width:150, align:"center"},
        {header:'${text("绝对数")}', name:'ruralPerCapitaDisposableIncomeValue1', index:'a.rural_per_capita_disposable_income_value1', width:150, align:"center"},
        {header:'${text("位次")}', name:'ruralPerCapitaDisposableIncomeValue2', index:'a.rural_per_capita_disposable_income_value2', width:150, align:"center"},
        {header:'${text("高于全省")}', name:'ruralPerCapitaDisposableIncomeValue3', index:'a.rural_per_capita_disposable_income_value3', width:150, align:"center"},
        {header:'${text("增长%")}', name:'ruralPerCapitaDisposableIncomeValue4', index:'a.rural_per_capita_disposable_income_value4', width:150, align:"center"},
        {header:'${text("位次")}', name:'ruralPerCapitaDisposableIncomeValue5', index:'a.rural_per_capita_disposable_income_value5', width:150, align:"center"},]
    var twoLevel1 =[
        {startColumnName: 'gdpValue1', numberOfColumns: 5, titleText: '地区生产总值(亿元)'},
        {startColumnName: 'primaryIndustryValue1', numberOfColumns:5, titleText:'第一产业(亿元)'}]
    var twoLevel2 =[{startColumnName: 'secondaryIndustryValue1', numberOfColumns: 5, titleText: '第二产业(亿元)'},
        {startColumnName: 'tertiaryIndustryValue1', numberOfColumns:5, titleText:'第三产业(亿元)'}]
    var twoLevel3 =[{startColumnName: 'primaryIndustryWeight', numberOfColumns: 2, titleText: '一产比重%'},
        {startColumnName: 'secondaryIndustryWeight', numberOfColumns:2, titleText:'二产比重%'},
        {startColumnName: 'tertiaryIndustryWeight', numberOfColumns: 2, titleText: '三产比重%'},
        {startColumnName: 'aboveScaleIndustryIncreaseValue1', numberOfColumns:2, titleText:'规模以上工业增加值'},
        {startColumnName: 'strategicEmergingIndustriesValue1', numberOfColumns:2, titleText:'战略性新兴产业产值'},
    ]
    var twoLevel4 =[{startColumnName: 'highTechIndustryValue1', numberOfColumns: 2, titleText: '高新产业增加值'},
        {startColumnName: 'fixedAssetsInvestValue1', numberOfColumns:2, titleText:'固定资产投资'},
        {startColumnName: 'techUpgradeInvestValue1', numberOfColumns: 2, titleText: '其中:技改投资'},
        {startColumnName: 'realEstateInvestValue1', numberOfColumns:2, titleText:'房地产投资'},
        {startColumnName: 'privateInvestValue1', numberOfColumns:2, titleText:'民间投资'},
    ]

    var twoLevel5 =[{startColumnName: 'wholeSocietyConsumerGoodsValue1', numberOfColumns: 5, titleText: '全社会消费品零售额'},
        {startColumnName: 'generalPublicBudgetRevenueValue1', numberOfColumns:5, titleText:'一般公共预算收入'},

    ]
    var twoLevel6 =[{startColumnName: 'financialInstitutionsRmbDepositsValue1', numberOfColumns: 5, titleText: '金融机构人民币各项存款'},
        {startColumnName: 'financialInstitutionsRmbLoansValue1', numberOfColumns:5, titleText:'金融机构人民币各项贷款'},

    ]
    var twoLevel7 =[{startColumnName: 'commercialHouseSaleAreaValue1', numberOfColumns: 5, titleText: '商品房销售面积'},
        {startColumnName: 'buildingIndustryTotalOutputValue1', numberOfColumns:5, titleText:'建筑业总产值'},

    ]
    var twoLevel8 =[{startColumnName: 'totalElectricityConsumptionValue1', numberOfColumns: 5, titleText: '全社会用电量'},
        {startColumnName: 'industrialPowerConsumptionValue1', numberOfColumns:5, titleText:'工业用电量'},

    ]
    var twoLevel9 =[{startColumnName: 'totalExportImportVolumeValue1', numberOfColumns: 5, titleText: '进出口总额'},
        {startColumnName: 'perCapitaDisposableIncomeValue1', numberOfColumns:5, titleText:'城乡居民人均可支配收入'},

    ]
    var twoLevel10 =[{startColumnName: 'urbanPerCapitaDisposableIncomeValue1', numberOfColumns: 5, titleText: '城镇常住居民人均可支配收入'},
        {startColumnName: 'ruralPerCapitaDisposableIncomeValue1', numberOfColumns:5, titleText:'农村常住居民人均可支配收入'},

    ]
    $('#dataGrid').dataGrid({
        searchForm: $("#searchForm"),
        sortableColumn: false, // 列表不允许排序
        columnModel: columnModel1,
        // 设置多级表头
        groupHeaders: {
            twoLevel:twoLevel1
        },
        // 加载成功后执行事件
        ajaxSuccess: function(data){

        }
    });
    //分页方法
    pageCum(10,1)
    function pageCum(count,currPage){
        layui.use(['laypage', 'layer'], function() {
            var laypage = layui.laypage
                , layer = layui.layer;
            laypage.render({
                elem: 'pageNum'
                ,count: count
                ,currPage:currPage
                ,limit:1
                ,layout: [ 'prev', 'page', 'next']
                ,jump: function(obj,first){
                    //首次不执行
                    if(!first){
                        var columnModel;
                        var twoLevel;
                        switch (obj.curr)
                        {
                            case 1:
                                columnModel=columnModel1;
                                twoLevel=twoLevel1;
                                break;
                            case 2:
                                columnModel=columnModel2;
                                twoLevel=twoLevel2;
                                break;
                            case 3:
                                columnModel=columnModel3;
                                twoLevel=twoLevel3;
                                break;
                            case 4:
                                columnModel=columnModel4;
                                twoLevel=twoLevel4;
                                break;
                            case 5:
                                columnModel=columnModel5;
                                twoLevel=twoLevel5;
                                break;
                            case 6:
                                columnModel=columnModel6;
                                twoLevel=twoLevel6;
                                break;
                            case 7:
                                columnModel=columnModel7;
                                twoLevel=twoLevel7;
                                break;
                            case 8:
                                columnModel=columnModel8;
                                twoLevel=twoLevel8;
                                break;
                            case 9:
                                columnModel=columnModel9;
                                twoLevel=twoLevel9;
                                break;
                            case 10:
                                columnModel=columnModel10;
                                twoLevel=twoLevel10;
                                break;
                        }

                        $("#dataGrid").jqGrid('GridUnload');
                        $('#dataGrid').dataGrid({
                            searchForm: $("#searchForm"),
                            sortableColumn: false, // 列表不允许排序
                            columnModel: columnModel,
                            // 设置多级表头
                            groupHeaders: {
                                twoLevel:twoLevel,
                            },
                            // 加载成功后执行事件
                            ajaxSuccess: function(data){

                            }
                        });

                    }
                }
            });
        })
    }
    // 导入
    $('#btnImport').click(function(){
        js.layer.open({
            type: 1,
            area: ['400px'],
            title: '${text("导入主要经济指标数据")}',
            resize: false,
            scrollbar: true,
            content: js.template('importTpl'),
            success: function(layero, index){
                layero.find('input[type="checkbox"]').iCheck();
            },
            btn: ['<i class="fa fa-check"></i> ${text("导入")}',
                '<i class="fa fa-remove"></i> ${text("关闭")}'],
            btn1: function(index, layero){
                var form = {
                    inputForm: layero.find('#inputForm'),
                    file: layero.find('#file').val()
                };
                if (form.file == '' || (!js.endWith(form.file, '.xls') && !js.endWith(form.file, '.xlsx'))){
                    js.showMessage("${text('文件不正确，请选择后缀为“xls”或“xlsx”的文件。')}", null, 'warning');
                    return false;
                }
                js.ajaxSubmitForm(form.inputForm, function(data){
                    js.showMessage(data.message);
                    if(data.result == Global.TRUE){
                        js.layer.closeAll();
                    }
                    page();
                }, "json");
                return true;
            }
        });
    });
    layui.use('laydate', function() {
        let laydate = layui.laydate;
        laydate.render({
            elem: '#publishYearMonth'
            ,type: 'month'
        });
    })
</script>
<script id="importTpl" type="text/template">
    <form id="inputForm" action="${ctx}/home/provinceMajor/importInfo?updateFlag=1" method="post" enctype="multipart/form-data"
          class="form-horizontal mt20 mb10" style="overflow:auto;max-height:200px;">
        <div class="row">
            <div class="col-xs-12 col-xs-offset-1">
                <input type="file" id="file" name="file" class="form-file"/>
                <font color="red" class="pull-left mt10">
                    ${text('提示：仅允许导入“xls”或“xlsx”格式文件！')}
                </font>
            </div>
        </div>
    </form>
</script>